home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Commodities
/
HyperHelp
/
HyperInstall
< prev
next >
Wrap
Text File
|
1996-09-26
|
4KB
|
160 lines
; A simple installation-script for the HyperHelp archive
; $VER: HyperInstall 0.23 (17/05/94)
;
(set #programmer "Russell/Lutzenberger")
(set #version "V0.23")
(set #Mainprog "HyperHelp_cx")
(set #Prefsprog "HyperHelp")
(set #Indexprog "MakeIndex")
(set #cli_Prefsprog "MakePrefs")
(set #guideeng "HyperHelp.guide")
(set #guidedeu "HyperHelp.Dguide")
(set #CRC_history "CRC_History.txt")
(set #exe "exe.lst")
(set @default-dest "SYS:")
(set mainsize 20988)
(set prefssize 25620)
(set guidesize 36303)
(set guidedeusize 36303)
(set indexsize 17204)
(set exesize 181)
(set cli_prefssize 10044)
(set crc_history 1519)
(set done (+ mainsize exesize prefssize guidesize guidedeusize indexsize cli_prefssize crc_history))
(complete 0)
(set progs
(askoptions
(help @askoptions-help)
(prompt "Select parts of the package to be installed:")
(choices "HyperHelp (Preferences)"
"HyperHelp_cx (Commodity)"
"HyperHelp.guide"
"CLI prefs programs"
(default 31)
)
)
)
(if (IN progs 2) (
(set docdest
(askdir
(prompt "Select in which drawer to install the documentation:")
(help @askdir-help)
(default @default-dest))
)
)
)
(if (IN progs 2) (
(set langs
(askoptions
(help @askoptions-help)
(prompt "Select document languages to install:")
(choices "German"
"English"
(default 31)
)
)
)
))
(if (IN progs 3) (
(set clidest
(askdir
(prompt "Select in which drawer to install the CLI programs:")
(help @askdir-help)
(default "C:"))
)
)
)
(if (IN progs 1) (
(copylib(source #Mainprog)
(dest "SYS:WBStartup")
(prompt (cat "About to copy " #Mainprog))
(help @copylib-help)
(confirm)
(infos))
)
)
(complete (/ (* (set sofar (+ sofar mainsize)) 100) done))
(if (IN progs 0) (
(copylib(source #Prefsprog)
(dest "SYS:Prefs")
(prompt (cat "About to copy " #Prefsprog))
(help @copylib-help)
(confirm)
(infos))
)
)
(complete (/ (* (set sofar (+ sofar prefssize)) 100) done))
(if (IN progs 2) (
(if (IN langs 0) (
(copylib(source #guidedeu)
(dest docdest)
(infos)
)
))
(if (IN langs 1) (
(copylib(source #guideeng)
(dest docdest)
(infos)
)
))
))
(complete (/ (* (set sofar (+ sofar guidesize)) 100) done))
(complete (/ (* (set sofar (+ sofar guidedeusize)) 100) done))
(if (IN progs 2) (
(copyfiles
(source #exe)
(dest docdest)
(infos)
)
)
)
(complete (/ (* (set sofar (+ sofar exesize)) 100) done))
(if (IN progs 2) (
(copylib(source #CRC_History)
(dest docdest)
(infos)
)
)
)
(complete (/ (* (set sofar (+ sofar crc_history)) 100) done))
(if (IN progs 3) (
(copylib
(source #Indexprog)
(dest clidest)
(prompt (cat "About to copy " #Indexprog))
(help @copylib-help)
(confirm)
(infos)
)
)
)
(complete (/ (* (set sofar (+ sofar indexsize)) 100) done))
(if (IN progs 3) (
(copylib
(source #cli_Prefsprog)
(dest clidest)
(prompt (cat "About to copy " #cli_Prefsprog))
(help @copylib-help)
(confirm)
(infos)
)
)
)
(complete 100)